﻿using MyModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;

namespace MyCommon.HttpContextUser
{
    public interface IUser
    {
        string UserName { get; }
        long UserId { get; }

        bool IsAuthenticated();

        IEnumerable<Claim> GetClaims();

        List<string> GetClaimValueByType(string claimType);

        string GetToken();

        List<string> GetUserInfoFromToken(string claimType);

        MessageModel<string> MessageModel { get; set; }
    }
}
